package cbfg.http.demo.gank.entity

import com.google.gson.annotations.SerializedName

/**
 * @author:  Tom Hawk
 * 添加时间: 2020/9/22 13:25
 * 功能描述:
 */
data class BaseGankList<T>(
    val status: Int,
    val data: List<T>,
    val page: Int,
    @SerializedName("page_count")
    val pageCount: Int,
    @SerializedName("total_counts")
    val totalCount: Int
) {
    fun isSuccessful(): Boolean {
        return this.status == 100
    }
}